<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:p="http://primefaces.prime.com.tr/ui">

	<p:panel>
		<p:messages globalOnly="true" rendered="true"/>
			<f:facet name="header">
				<h:outputText value="#{msg.trocarSenha}" />
			</f:facet>
			<h:form id="idPrimeiroAcessoMBForm">	
				<fieldset id="legend_area"><legend id="legend">
				<h:outputLabel value="#{msg.primeiroAcessoDados}" /></legend> 
					<h:panelGrid columns="2">
						<h:panelGroup>
							<br/>
							<h:outputLabel value="#{msg.novaSenha}" for="idNovaSenhaPrimeiroAcesso" />
							<span class="req"> *</span>
						</h:panelGroup>
						<h:panelGroup>
							<rich:message for="idNovaSenhaPrimeiroAcesso" styleClass="mensagem_erro_campo" /><br/>
							<h:inputSecret id="idNovaSenhaPrimeiroAcesso"
								value="#{primeiroAcessoMB.novoPassword}" size="15" maxlength="15"
								onkeyup="javascript:toUpperCase(this);" required="true"
								requiredMessage="#{msg.campoObrigatorio}">
								<rich:ajaxValidator event="onblur" />
							</h:inputSecret>
						</h:panelGroup>

						<h:panelGroup>
							<br/>
							<h:outputLabel value="#{msg.repeteNovaSenha}" for="idRepeteNovaSenhaPrimeiroAcesso" />
							<span class="req"> *</span>
						</h:panelGroup>
						<h:panelGroup>
							<rich:message for="idRepeteNovaSenhaPrimeiroAcesso" styleClass="mensagem_erro_campo" /><br/>
							<h:inputSecret id="idRepeteNovaSenhaPrimeiroAcesso"
								value="#{primeiroAcessoMB.repetePassword}" size="15" maxlength="15"
								onkeyup="javascript:toUpperCase(this);" required="true"
								requiredMessage="#{msg.campoObrigatorio}">
								<rich:ajaxValidator event="onblur" />
							</h:inputSecret>
						</h:panelGroup>
					</h:panelGrid>
				</fieldset>
				<br />

				<h:panelGrid columns="2" width="100%" style="text-align:center;">
					<h:panelGroup>
						<a4j:commandButton value="#{msg.botaoSalvar}"
							action="#{primeiroAcessoMB.save}"
							style="text-align:center;"/>
					</h:panelGroup>
				</h:panelGrid>
			</h:form>
		</p:panel>
</ui:composition>